
#ifndef  __PING_FUNC_H__
#define  __PING_FUNC_H__
#include <stdint.h>

//ping命令配置参数
typedef struct 
{
    uint32_t count;
    uint32_t intervalMs;
    uint32_t timeoutMs;
    uint32_t dataSize;
    uint8_t tos;
    uint8_t targetAddr[32];
}PingConfig_t;

//网络连通性
#define NETWORK_CONNECTIVITY_FAIL (-1)
#define NETWORK_CONNECTIVITY_OK   (0)

int ExecPingCmd(PingConfig_t *pingCfg);
int GetNetworkConnectivityResult();

#endif // ! 